package com.feizi.mapper;

import java.util.List;

import com.feizi.entity.AddressEntity;

public interface AddressMapper {
	/**
	 * 查询该用户所有收货地址
	 * @param uid
	 * @return
	 */
	public List<AddressEntity> findAddress(int uid);
	/**
	 * 查询收货地址
	 * @param id
	 * @return
	 */
	public AddressEntity findOrAddress(int id);
	/**
	 * 添加收货地址
	 * @param ae
	 * @return
	 */
	public int addAddress(AddressEntity ae);
	/**
	 * 修改收货地址
	 * @param ae
	 * @return
	 */
	public int upAddress(AddressEntity ae);
	/**
	 * 删除收货地址
	 * @param id
	 * @return
	 */
	public int delAddress(int id);
}
